package com.zyj.reapiadmin.service.impl.inner;

import com.zyj.reapiadmin.service.InterfaceInfoService;
import com.zyj.reapicommon.model.entity.InterfaceInfo;
import com.zyj.reapicommon.service.InnerInterfaceInfoService;
import org.apache.dubbo.config.annotation.DubboService;

import javax.annotation.Resource;

/**
* @author zyj
*/
@DubboService
public class InnerInterfaceInfoServiceImpl implements InnerInterfaceInfoService {

    @Resource
    private InterfaceInfoService interfaceInfoService;

    @Override
    public InterfaceInfo getInterfaceInfo(String path, String method) {
        return interfaceInfoService.lambdaQuery()
                .eq(InterfaceInfo::getPath, path)
                .eq(InterfaceInfo::getMethod, method)
                .one();
    }
}




